#!/bin/bash
File="/mnt/sata1/buffer/提交数据前请阅读.txt"
sed -i '$d' $File
df -h /dev/sda1 | tail -n 1 | awk '{print "Total: "$2"\tUsed: "$3" ("$5")\t\tFree Space: "$4}' >> $File
